Skip to content

Instantly share code, notes, and snippets.

@Davoleo
Davoleo / spotify.md
Last active May 17, 2024 19:33
An in-depth guide on modding Spotify with updated methods to remove ads, bypass country restrictions and theme the application

Spotify Modding & Guides

This is a collections of script, patches and procedures to mod Mobile and Desktop Spotify Applications.

If you know about something that isn't listed here and you would like it to be feel free to tell me about it in the comments or send an e-mail to dav@davoleo.net

Table of Contents

@jimmckeeth
jimmckeeth / SetupUbuntu4Delphi22.sh
Last active May 17, 2024 19:33
This script automates the setup of Ubuntu 22.04 LTS for Delphi 11.3 Alexandria
#!/bin/bash
#
# Download and execute with the following:
# curl -L https://embt.co/SetupUbuntu4Delphi22 | bash
#
echo "Updating the local package directory"
sudo apt update
echo "Upgrading any outdated pacakges"
sudo apt full-upgrade -y
echo "Install new packages necessary for Delphi & FMXLinux"
# Create a gp2 type volume
# Attach it with the specific EC2 instance
# Use device name `/dev/sdf` it will appear as `/dev/xvdf`
# List available disks to identify the newly attached volume
lsblk # locate `xvdf` at the bottom
# Create a file system on the new volume
sudo mkfs -t ext4 /dev/xvdf
@ekm507
ekm507 / convert_string_numbers_to_persian.py
Created May 9, 2021 20:36
تبدیل اعداد انگلیسی در رشته به فارسی در پایتون
# نگاشت اعداد انگلیسی به فارسی
E2P_map = {'1' : '۱', '2' : '۲', '3' : '۳', '4' : '۴', '5' : '۵', '6' : '۶', '7' : '۷', '8' : '۸', '9' : '۹', '0' : '۰' }
# تبدیل اعداد انگلیسی به فارسی در رشته ورودی
def convert_number_to_persian(strIn : str):
a = map(lambda ch: E2P_map[ch] if ch in E2P_map else ch, strIn)
return ''.join(list(a))
import { Client } from "@upstash/qstash"
import { NextRequest } from "next/server"
const baseUrl = process.env.NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL
? `https://${process.env.NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL}`
: "http://localhost:3000"
interface Step<I> {
create: <O>(action: (prevResult: Awaited<I>) => O) => Step<O>
finally: (action: (prevResult: Awaited<I>) => any) => any
import { Client } from "@upstash/qstash"
import { NextRequest } from "next/server"
const baseUrl = process.env.NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL
? `https://${process.env.NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL}`
: "http://localhost:3000"
interface Step<I> {
create: <O>(action: (prevResult: Awaited<I>) => O) => Step<O>
finally: (action: (prevResult: Awaited<I>) => any) => any
@sametcn99
sametcn99 / README.md
Last active May 17, 2024 19:19
Glob patterns are a powerful mechanism for matching file and directory names in a file system.

Using Glob Patterns in TypeScript Projects: A Comprehensive Guide with Detailed Character Explanations and Examples

Introduction to Glob Patterns in TypeScript

Glob patterns are a powerful mechanism for matching file and directory names in a file system. In TypeScript projects, they play a crucial role in tasks such as file selection, automation, and maintaining a modular project structure. To harness the full power of glob patterns, it's essential to understand each character and its role in defining matching criteria. Let's dive into a detailed exploration of glob pattern characters:

* (Asterisk)

  • Usage: Represents any sequence of characters.
@lpenz
lpenz / custom.toml
Created August 27, 2023 13:09
custom.toml example for Raspberry Pi OS
# Raspberry PI OS config.toml
# This file is used for the initial setup of the system on the first boot, if
# it's s present in the boot partition of the installation.
#
# This file is loaded by firstboot, parsed by init_config and ends up
# as several calls to imager_custom.
# The example below has all current fields.
#
# References:
# - https://github.com/RPi-Distro/raspberrypi-sys-mods/blob/master/usr/lib/raspberrypi-sys-mods/firstboot
@robertkirkman
robertkirkman / README.md
Last active May 17, 2024 19:19
How to record or stream SteamOS 3.X Gaming Mode

How to record or stream SteamOS 3.X in gamescope (Gaming Mode)

Here is another method that uses Flatpak and obs-vkcapture, which don't meet my personal needs but are very likely to be useful for you. In the comments there there is also an obs-gstreamer method.

Here is another method for recording that has its own GUI for Gaming Mode built with Decky Loader.

Force SteamOS to behave very much like Arch Linux

Key phrase: very much like, not identical. Always treat this as more unstable than Manjaro and only expect support with it in my comments section here.

  1. Set a password (if you haven't already) and disable read-only rootfs (yes this means after updating SteamOS [not Steam Client] this will all be deleted and you will have to do all this again if you want
@dansutherland-engineer
dansutherland-engineer / cookie-banner.liquid
Last active May 17, 2024 19:15
Shopify basic cookie consent banner using the Customer Privacy API